<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ page import="net.lwf.handler.util.ImageHtml, net.lwf.util.web.WebUtil"%>

   <html:form action="/login" focus="userid">
   <div onKeyPress="return checkSubmit(event, '/login.do?action=login')">
 		<table align="center" border="0">
            <tr>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td>
                  <fieldset>
                  	 <legend class="legend" align="right">Log  <span> in </span></legend>
                  	 <table>
                  	    <tr>
                  	       <td colspan="3" class="errortext_center">
							  <html:errors property="globalmessage"/><br />
							</td>
                  	    </tr>                  	 
                  	    <tr>
                  	       <td class="formLabel">User Id:</td>
                  	       <td>
                  	          <html:text property="userid" />
                  	       </td>
                  	       <td>&nbsp;</td>
                  	    </tr>
                  	    <tr>
                  	       <td colspan="3">&nbsp;</td>
                  	    </tr>
                  	    <tr>
                  	       <td class="formLabel">Password:</td>
                  	       <td>
                  	          <html:password property="password"/>
                  	       </td>
                  	       <td>
                  	       		<input type="button" name="btnLogin" value="Login" onClick="submitForm('/login.do?action=login')"/>
                  	       </td>
                  	    </tr>
                  	    <tr>
                  	       <td colspan="3">&nbsp;</td>
                  	    </tr>
                  	 </table>
                  </fieldset>
               </td>
            </tr> 
            <tr>
               <td>&nbsp;</td>
            </tr>
            <tr>
               	<td align="center">
					<a href="#">Register</a>
				</td>
            </tr>   
            <tr>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td align="center">
               		<table>
               			<tr>
               				<td>
               					<bean:define id="grades" name="loginform" property="grades" type="java.util.List" />
								<html:select property="selectedGrade">
									<html:options collection="grades" property="key" labelProperty="value" />
								</html:select>
               				</td>
               				<td>&nbsp;</td>
               				<td>
               					<!-- <input type="button" name="btnLogin" value="Login as guest" onClick="guestLogin('/login.do?action=guestlogin')"/> -->
               					<input type="button" name="btnLogin" value="Login as guest" onClick="underDevelopment()"/>
               				</td>
               			</tr>
               		</table>
               </td>
            </tr>                                      
		</table> 
   </div>
   </html:form>
